

from flask import Flask, request, abort, redirect, url_for, render_template

app = Flask(__name__)

# 路由
@app.route("/")
def hello_world():
    return "Hello, World!"

# 路由
@app.route("/login/<int:_id>", methods=["GET"])
def get_login(_id):
    print(_id)
    pwd = request.args.get('pwd')
    email = request.args.get('email')
    if pwd and email:
        return {"name": 'a', 'email':'1'}
    else:
        return "参数不正确1"

@app.route('/about')
def get_about():
    abort(401)
    # return render_template('a.html')




